<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        var a = [];
        a[0] = "123";
        alert(a[9]);
        a[4] = 5;
        // 给数组变量赋值可以使数组扩容
        for(var i=0; i < a.length; i++){
            alert(a[i]);
        }
    </script>
</head>
<body>
    
</body>
</html>